import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'



//引入elementplus组件;使用布局，控件

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

//将图标进行引入
import * as ElementPlusIconsVue from  '@element-plus/icons-vue'


const app = createApp(App)
app.use(ElementPlus).use(store).use(router).mount('#app')


//全局注册图标
for(const [key,component] of Object.entries(ElementPlusIconsVue)){
    app.component(key,component)
}
